package de.ifi.lmu.snitzelhunt.basics;

/**
 * Abstract Class with the shared field of all Task types
 * 
 * @author jaschkowitz
 * 
 */
public abstract class Task {
	protected double latitude;
	protected double longitude;

	/**
	 * simple constructor for setting all fields
	 * 
	 * @param latitude
	 * @param longitude
	 */
	public Task(double latitude, double longitude) {
		super();
		this.latitude = latitude;
		this.longitude = longitude;
	}

	/**
	 * no args constructor for gson
	 */
	public Task() {
	}

	/**
	 * @return a String with details (question, action,..)
	 */
	public abstract String getDetail();

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}
	
	

}
